//
//  CQBaseViewController.m
//  CQFramework
//
//  Created by Martin on 16/5/21.
//  Copyright © 2016年 caoqin. All rights reserved.
//

#import "CQBaseViewController.h"
#import "CQCommonHeader.h"
@interface CQBaseViewController ()

@end

@implementation CQBaseViewController



-(BOOL)prefersStatusBarHidden{
    
    return self.cqHidenSatusBar;
}

-(UIStatusBarStyle)preferredStatusBarStyle{
    
    switch (self.cqStatusBarType) {
        case CQStatusTypeBlack:
        {
            return UIStatusBarStyleDefault;
        }
            break;
        case CQStatusTypeWhite:
        {
            if (ISIOS7) {
                return UIStatusBarStyleLightContent;
            }else{
                return UIStatusBarStyleBlackTranslucent;
            }
        }
            break;
        default:
            break;
    }
    
    return UIStatusBarStyleDefault;
}

@end
